package com.example.gongj;

/**
 * @program: gongj
 * @description: 外部类与成员内部类
 * @author: gongj
 * @Description: TODO
 * @create: 2020-08-11 14:35
 **/
//外部类
public class A {
    int age = 22;

    public void findAge(){
        System.out.println(age);
        System.out.println(this.age);
    }
            //成员内部类
    class B{
        int age = 99;
        public void findAge(){
            System.out.println(age);
            System.out.println(this.age);
        }
    }

}
